package tr.edu.metu.is.mega.client.core;

import com.extjs.gxt.ui.client.widget.button.Button;
import com.google.gwt.user.client.ui.AbstractImagePrototype;

/**
 * Button overriding default implementation of gxt button.
 */
public class TooltipButton extends Button {

    /**
     * Default constructor.
     * 
     * @param text text to display on tooltip
     * @param icon button icon
     */
    public TooltipButton(String text, AbstractImagePrototype icon) {
        super(text, icon);
        setToolTip(text);
    }

}
